
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>课程、分数</title>
</head>
<body>
<?php
 $shuxue = 100;
 $wangye = 90;
 $yuwen = 80;
 $pingjun = ($shuxue + $wangye + $yuwen)/3; 
 
 define('PI',3.14);
 define('DRPAIH','c:/wamp/www/');
 echo DRPAIH ."hzk/index3.php";
 const pi01 = 3.1415;
 echo pi01;
?>  

 <table>
     <tr>
         <th>课程</th>
         <th>分数</th>
     </tr>
     <tr>
         <td>数学</td>
         <td><?php echo $shuxue; ?></td>
     </tr>
     <tr>
         <td>网页</td>
         <td><?php echo $wangye; ?></td>
     </tr>
     <tr>
         <td>语文</td>
         <td><?php echo $yuwen; ?></td>
     </tr>
     <tr>
         <td>平均分</td>
         <td><?php echo $pingjun; ?></td>
     </tr>
 </table>
</body>
